import {setServer} from "@/utils/axios";
import {chargeUrl} from "../../../url";
const chargeRequest = setServer(chargeUrl);

// 查询充电桩设备记录
export function getChargeRecord(query) {
  return chargeRequest({
    url: '/device/record/',
    method: 'get',
    params: query
  })
}

// 批量查看所选设备
export function updateChargeEnable(query) {
  return chargeRequest({
    url: '/device/record/batchUpdateEnable',
    method: 'put',
    params: query
  })
}

// 更新设备
export function updateChargeData(query) {
  return chargeRequest({
    url: '/device/record/newestUpdateEnable',
    method: 'put',
    params: query
  })
}

// 充电桩重新预警
export function reloadCharge(query) {
  return chargeRequest({
    url: '/device/record/reload',
    method: 'get',
    params: query
  })
}
